package com.maysev.myjob_backend.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author 五七
 * @create 2023-03-30 15:22
 * @description:
 */
@Data
public class StuAuth implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;

    private Long userId;
    //大学名称
    private String university;

    //专业
    private String major;

    //学历
    private String education;

    //学生认证材料
    private String stuAuthPhoto;

    //认证状态
    private String  status;

    //入学时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    //毕业时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
